package com.ruoyi.course.mapper;

import java.util.List;

import com.ruoyi.course.domain.CourseTrain;

/**
 * course_trainMapper接口
 *
 * @author zzx
 * @date 2023-03-29
 */
public interface CourseTrainMapper {
    /**
     * 查询course_train
     *
     * @param id course_train主键
     * @return course_train
     */
    public CourseTrain selectCourseTrainById(Long id);

    /**
     * 查询course_train列表
     *
     * @param courseTrain course_train
     * @return course_train集合
     */
    public List<CourseTrain> selectCourseTrainList(CourseTrain courseTrain);

    /**
     * 新增course_train
     *
     * @param courseTrain course_train
     * @return 结果
     */
    public int insertCourseTrain(CourseTrain courseTrain);

    /**
     * 修改course_train
     *
     * @param courseTrain course_train
     * @return 结果
     */
    public int updateCourseTrain(CourseTrain courseTrain);

    /**
     * 删除course_train
     *
     * @param id course_train主键
     * @return 结果
     */
    public int deleteCourseTrainById(Long id);

    /**
     * 批量删除course_train
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCourseTrainByIds(Long[] ids);

    List<CourseTrain> selectCourseTrainListAll(CourseTrain courseTrain);
    
}
